package com.hand.liut.service.impl;

import com.hand.liut.entity.CommonResult;
import com.hand.liut.entity.Payment;
import com.hand.liut.service.PaymentService;
import org.springframework.stereotype.Service;

@Service
public class FeignPaymentServiceImpl implements PaymentService {
    @Override
    public int create(Payment payment) {
        return 0;
    }

    @Override
    public Payment findById(Long id) {
        Payment payment = new Payment();
        payment.setId(1l);
        payment.setSerial("success");
        CommonResult<Payment> commonResult = new CommonResult<>();
        commonResult.setData(payment);
        commonResult.setCode(000000);
        commonResult.setMessage("Success");
        return payment;
    }
}
